#include <iostream>
typedef long long int ll;
using namespace std;

ll sum = 0;
ll ans = 0;
// pos card number
// cnt card count
void dfs(int pos, int cnt)
{
    if (cnt == 14)
    {
        sum++;
        return;
    }
    if (pos == 14)
    {
        return;
    }
    int n = min(14 - cnt, 4);
    for (int i = 0; i <= n; i++)
    {
        dfs(pos + 1, cnt + i);
    }
    return;
}

int main()
{
    dfs(1, 1);
    cout << sum << endl;
    return 0;
}